<div class="panel panel-default" ng-controller="NotifysCtrl">
	<div class="panel-heading">系统管理 / 发送系统公告</div>
	<toaster-container
		toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="modal-body">
		<div class="tab-pane active" id="tab-sms">
			<div class="row feature">
				<div class="col-md-12">
					<form name="myForm" class="form-horizontal form-validation"
						role="form">
						<div class="form-group">
							<label class="col-md-2 control-label"> 消息类型： </label>
							<div class="col-md-4">
								<ui-select ng-model="dplist.selected" theme="bootstrap">
								<ui-select-match placeholder="所属模版">{{$select.selected.name}}</ui-select-match>
								<ui-select-choices
									repeat="dp in dplist | propsFilter:{name: $select.search}">
								<span ng-bind-html="dp.name | highlight: $select.search"></span>
								</ui-select-choices> </ui-select>
							</div>
							<div ng-show="dplist.selected.id!=0"><button type="button" class="btn btn-info" ui-sref="app.system.recipient({type:dplist.selected.id})">选择收件人</button></div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label">消息主题： </label>
							<div class="col-md-4">
								<input type="text" class="form-control" ng-minlength="1"  ng-model="subject" required />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label">消息内容： </label>
							<div class="col-md-4">
								<textarea class="form-control" rows="5" ng-minlength="1" ng-maxlength="200"
									ng-model="content"
									style="resize: none" required></textarea>
							</div>
						</div>					
						<div class="form-group">
							<div class="col-md-offset-2 col-md-4">
								<button type="button" class="btn btn-primary"
									ng-click="clear()">清空</button>
								<button type="button" class="btn btn-primary"
									ng-click="send()" style="margin-left: 50px">发送消息</button>

							</div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label">消息说明： </label>
							<div class="col-md-8">
                             <p>客服消息：所有乘客都可以收到消息，消息类型属于客服消息。</p>
                             <p>订票消息：订票订单列表所勾选订单中的乘客可以收到消息，消息类型属于客服消息。</p>
                             <p>城际约租消息：城际约租订单列表所勾选订单中的乘客可以收到消息，消息类型属于城际约租消息。</p>
                             <p>跨城巴士消息：跨城巴士订单列表所勾选订单中的乘客可以收到消息，消息类型属于跨城巴士消息。</p>
							</div>
						</div>											
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
